try {
  const $form = this.getApiPage().getApiWidgetByAliasName('judge-content');
  const data = $form.widgetObj._option.dataSource;
  const options = {
    method: 'POST',
    headers: {
      "Content-type": "application/json",
    },
    body: JSON.stringify({ id: data.id, disableFlag: 1 })
  };

  console.log(data, options);
  fetch('/Event/drillPlanInfo/update', options)
    .then(res => res.json())
    .then(json => {
      const during = this.getApiPage().getApiWidgetsByClassName('during')
      const detailStart = this.getApiPage().getApiWidgetByAliasName('detail-start')
      const detailStartIco = this.getApiPage().getApiWidgetByAliasName('detail-start-ice')

      during.forEach(v => v.hideWidget())
      detailStart.hideWidget()
      detailStartIco.hideWidget()

      this.getApiPage().setVariables([{ name: 'update', value: data.id }])
      console.log(json);
    })

} catch (error) {
  console.log(error)
}

